package com.dykj.fireFighting.server.socialUnit.xfxg.mapper;


import com.dykj.fireFighting.api.socialUnit.xfxg.entity.FireGroupDevice;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Description 消防群组设备中间表
 * @Author JacksonTu
 * @Date  2021-07-05 13:38:41
 */
public interface FireGroupDeviceMapper extends SuperMapper<FireGroupDevice> {

    @Select("select device_id from fire_group_device where fire_group_id=#{fireGroupId} and type=#{type}" )
    List<String> getDeviceByFireGroupId(@Param("fireGroupId") String fireGroupId,@Param("type") Integer type);
    @Delete("DELETE FROM fire_group_device where fire_group_id=#{fireGroupId}")
    int delFireGroupId(@Param("fireGroupId") String fireGroupId);

	
}
